// This file is part of the RECODER library and protected by the LGPL.

package recodercs.csharp.expression.operator;

import recodercs.csharp.*;
import recodercs.csharp.expression.*;

/**
 Comparative operator.
 @author <TT>AutoDoc</TT>
 */

public abstract class ComparativeOperator extends Operator {

    /**
     Comparative operator.
     */

    public ComparativeOperator() {}

    /**
     Comparative operator.
     @param lhs an expression.
     @param rhs an expression.
     */

    public ComparativeOperator(Expression lhs, Expression rhs) {
        super(lhs, rhs);
    }

    /**
     Comparative operator.
     @param proto a comparative operator.
     */

    protected ComparativeOperator(ComparativeOperator proto) {
        super(proto);
    }

    /**
     Get arity.
     @return the int value.
     */

    public int getArity() {
        return 2;
    }

    /**
     Get notation.
     @return the int value.
     */

    public int getNotation() {
        return INFIX;
    }
}
